package edu.sctu.practice.class02.xuejiahua.test02;

/**
 * Created by Administrator on 2015/10/9.
 */
public class Vehicle {
   public double speed,size;


    public Vehicle(double size,double speed) {
        this.size = size;
        this.speed = speed;
    }

    public void move(){
        System.out.println("This is move");

    }
    public void setSpeed(double a){
        System.out.println(speed=a);
    }
    public void speedUp(double a){
        System.out.println(speed=a+1);

    }
    public void speedDown(double a){
        System.out.println(speed=a-1);
    }



}
